

const inputCgCodeList = [
    'event',
    '输入'
]

const outputCgCodeList = [
    '输出',
    'output'
]
const branchCgCodeList = [
    '分支',
    'branch'
]

export const isEventCategoryCompoent = (cgCode) => {
    if (!cgCode) {
        return false;
    }
    return inputCgCodeList.includes(cgCode);
}

export const isOutputCategoryCompoent = (cgCode) => {
    if (!cgCode) {
        return false;
    }
    return outputCgCodeList.includes(cgCode);
}

export const isBranchCategoryCompoent = (cgCode) => {
    if (!cgCode) {
        return false;
    }
    return branchCgCodeList.includes(cgCode);
}


export const isEventOrOutputCategoryCompoent = (cgCode) => {
    if (!cgCode) {
        return false;
    }
    return isEventCategoryCompoent(cgCode) || isOutputCategoryCompoent(cgCode);
}

